﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpyTxT
{
    public interface IUIAction
    {
        void AddRevXMLData(string xmldata);

        void SetTicket(string ticket);

        string GetTicket();

        void SetState(StateManager.STATE_MODE state);

        void DeleteDoXML(IDoXML p);

        void LoginGetTicket();

        void LoginIntoTXT();

        void SoftInfUpdata();

        void SetListBoxSourceByName(string cityname);

        void AddPeiHuoTemple(PeiHuoTemple peihuotemple);

        void SelectCity(string cityname);

        string GetSelectCity();

        string GetCurSelectAreaCityMaxid();

        string GetCurSelectAreaCityFristRow();

        void SetCurSelectAreaCityFristRow(string firstrow);

        void SetCurInfroMaxCount(string maxcount);

        string GetCurInfroMaxCount();

        void SetLogin(Boolean b);

        void AddDebugInfo(string debuginfo);

        Boolean GetLogin();

        void SetRunInfo(string info);

        void SelectListenCity(String cityname);

        Config getConfig();
    }
    public interface IInitUIAction
    {
        void InitUIAction(IUIAction p);
    }
    class  UIAction
    {
        private IUIAction uiaction;

        public void SetUIAction(IUIAction p)
        {
            this.uiaction = p;
        }
        public IUIAction GetUIAction()
        {
            return uiaction;
        }

    }
    public interface IConfig
    {
         void OnLoad(Config config);
         void OnSave(Config config);

    }
}
